from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
_magic_number = 2
_modified_time = 1215201774.5778821
_template_filename='/Users/chrismoos/Documents/Code/openlbs/openlbs-server/openlbsserver/templates/register.mak'
_template_uri='/register.mak'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
_exports = ['content']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, 'base.mak', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack.push_frame()
    try:
        __M_locals = dict(pageargs=pageargs)
        # SOURCE LINE 2
        context.write(u'\n\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


def render_content(context):
    context.caller_stack.push_frame()
    try:
        h = context.get('h', UNDEFINED)
        _ = context.get('_', UNDEFINED)
        # SOURCE LINE 4
        context.write(u'\n\n<script type="text/javascript">\nfunction onRegister() {\n if(document.getElementById("pass").value.length == 0) {\n    alert("')
        # SOURCE LINE 9
        context.write(unicode(_('You must enter a password')))
        context.write(u'");\n    return false;  \n }\n else if(document.getElementById("pass").value == document.getElementById("pass1").value) {\n    return true;  \n }  \n else {\n    alert("')
        # SOURCE LINE 16
        context.write(unicode(_('The passwords you entered do not match.')))
        context.write(u'");\n    return false;  \n }\n}\n</script>\n\n<p>')
        # SOURCE LINE 22
        context.write(unicode(_('Please fill out the information below to register an account.')))
        context.write(u'</p>\n\n<form action="/register" method="POST">\n<table>\n<tr><td>')
        # SOURCE LINE 26
        context.write(unicode(_('E-Mail Address')))
        context.write(u':</td><td>')
        context.write(unicode(h.form_input_txt('email')))
        context.write(u'</td></tr>\n<tr><td>')
        # SOURCE LINE 27
        context.write(unicode(_('Username')))
        context.write(u':</td><td>')
        context.write(unicode(h.form_input_txt('username')))
        context.write(u'</td></tr>\n<tr><td>')
        # SOURCE LINE 28
        context.write(unicode(_('Password')))
        context.write(u':</td><td>')
        context.write(unicode(h.form_input_txt('password',fieldtype='password')))
        context.write(u'</td></tr>\n<tr><td>')
        # SOURCE LINE 29
        context.write(unicode(_('Password(confirm)')))
        context.write(u':</td><td>')
        context.write(unicode(h.form_input_txt('password1',fieldtype='password')))
        context.write(u'</td></tr>\n</table>\n<br/>\n<input type="submit" onclick="return onRegister();" value="')
        # SOURCE LINE 32
        context.write(unicode(_('Register')))
        context.write(u'"/>\n</form>\n')
        return ''
    finally:
        context.caller_stack.pop_frame()


